﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;

/// <summary>
/// Summary description for UserBUS
/// </summary>
public class UserBUS
{
    public static bool ktraTonTai(UserDTO ndDTO)
    {
        return UserDAO.ktraTonTai(ndDTO);
    }
    public static bool themUser(UserDTO ndDTO)
    {
       return UserDAO.themUser(ndDTO);
    }
    public static bool ktraDangNhap(UserDTO ndDTO)
    {
        return UserDAO.ktraDangNhap(ndDTO);
    }
    public static DataTable LayUserName(UserDTO ndDTO)
    {
        return UserDAO.LayUserName(ndDTO);
    }
    public static bool ktraQuenPassword(UserDTO ndDTO)
    {
        return UserDAO.ktraQuenPassword(ndDTO);
    }
    public static string LayPassword(UserDTO ndDTO)
    {
        return UserDAO.LayPassword(ndDTO);
    }
    public static void DoiPassword(UserDTO ndDTO)
    {
        UserDAO.DoiPassword(ndDTO);
    }
    public static bool ktraAdmin(UserDTO ndDTO)
    {
        return UserDAO.ktraAdmin(ndDTO);
    }
    public static DataTable LayDanhSachUser()
    {
        return UserDAO.LayDanhSachUser();
    }
    public static void EditInfo(UserDTO ndDTO)
    {
        UserDAO.EditInfo(ndDTO);
    }
    public static DataTable LayThongTinUserVuaDangKi(UserDTO ndDTO)
    {
        return UserDAO.LayThongTinUserVuaDangKi(ndDTO);
    }

    public static bool AdminThemUser(UserDTO ndDTO)
    {
        return UserDAO.AdminThemUser(ndDTO);
    }
    public static void XoaUser(UserDTO ndDTO)
    {
        UserDAO.XoaUser(ndDTO);
    }
}